import { post } from '@/utils/request'

// 从企业微信同步获取会话同意情况
export const syncFriendsAgreeFromWx = p => post(`/service-cop/b/dataTalk/v1/syncFriendsAgree`, p)
// 从企业微信同步获取会话内容存档开启成员列表
export const syncFriendsPermitFromWx = p => post(`/service-cop/b/dataTalk/v1/syncFriendsPermit`, p)
// 从企业微信同步获取群聊及成员
export const syncDataTalkGroupFromWx = p => post(`/service-cop/b/dataTalk/v1/syncDataTalkGroup`, p)
// 从企业微信同步获取会话内容存档
export const syncDataTalkFromWx = p => post(`/service-cop/b/dataTalk/v1/syncDataTalk`, p)
// 查询员工的好友列表
export const queryFriendsList = p => post(`/service-cop/b/dataTalk/v1/queryFriendsList/${p.employeeCode}/${p.type}`, p)
// 查询员工的群列表
export const queryGroupList = p => post(`/service-cop/b/dataTalk/v1/queryGroupList/${p.code}`, p)
// 查询聊天记录
export const queryBySenderAndReceiverCode = p => post(`/service-cop/b/dataTalk/v1/queryBySenderAndReceiverCode/${p.senderCode}/${p.receiverCode}/${p.type}`, p)
// 查询聊天记录
export const queryByGroupCode = p => post(`/service-cop/b/dataTalk/v1/queryByGroupCode/${p.groupCode}`, p)
// 查询聊天记录
export const sendMsg = p => post(`/service-cop/b/dataTalk/v1/sendMsg/${p.type}`, p)
